import random
random.seed(10)
import string
List=string.ascii_letters+string.digits
n=eval(input('输入生成密码长度:'))
password=''
for i in range(n):
    word=random.choice(List)
    password=password+word
print(password)
